package modelLayer;


/**
 * Write a description of class Loan here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Loan
{
    // instance variables - replace the example below with your own
    private String id;
    private String borrowDate;
    private String period;
    private String state;
    private Person person;
    private Copy copy;
    

    /**
     * Constructor for objects of class Loan
     */
    public Loan(Copy copy, Person person, String id, String borrowDate, String period, String state)
    {
        this.id = id;
        this.borrowDate = borrowDate;
        this.period = period;
        this.person = person;
        this.copy = copy;
        this.state = state;
    }
    
    // Get ID
    public String getId() 
    {
        return id;
    }
    public String getBorrowDate() 
    {
        return borrowDate;
    }
    public String getPeriod() 
    {
        return period;
    }
    public String getState() 
    {
        return state;
    }
    public Person getPerson() 
    {
        return person;
    }
    public Copy getCopy() 
    {
        return copy;
    }
    
    //Set period
    public void setPeriod(String newPeriod) 
    {
        period = newPeriod;
    }
    public void setState(String newState) 
    {
        state = newState;
    }

    
}
